package br.com.example;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import br.com.medmark.model.hibernate.dao.AdministradorDAO;
import br.com.medmark.model.hibernate.dao.ClinicaDAO;
import br.com.medmark.model.hibernate.dao.UsuarioDAO;
import br.medmark.servico.AdministradorServico;
import br.medmark.servico.ClinicaServico;
import br.medmark.servico.UsuarioServico;

public class Inicializador implements ServletContextListener{


	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		/*ClinicaDAO.getInstance();
		AdministradorDAO.getInstance();
		UsuarioDAO.getInstance();
		AdministradorServico.getInstance();
		ClinicaServico.getInstance();
		UsuarioServico.getInstance();
		System.out.println("inicializou objetos!");
		
		Servidor servidor = new Servidor();
	    new Thread(servidor).start();

		System.out.println("rodou servidor!");*/
		
	}

}
